<?php
$str_name = trim($_POST['str_name']);

echo $str_name, ' 的字符串长度为: ', strlen($str_name);
?>